﻿using System;

class MathExpression
{
    static void Main(string[] args)
    {
        System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;

        double n = double.Parse(Console.ReadLine());
        double m = double.Parse(Console.ReadLine());
        double p = double.Parse(Console.ReadLine());

        double result = (n * n + 1f / (m * p) + 1337) / (n - 128.523123123 * p) + Math.Sin((int)m % 180);

        Console.WriteLine("{0:F6}",result);
    }
}
